package com.nf.controller;

import com.google.gson.Gson;
import com.nf.dao.ShowDateVoDao;
import com.nf.dao.ShowInfoDao;
import com.nf.dao.impl.ShowDateVoDaoImpl;
import com.nf.dao.impl.ShowInfoDaoImpl;
import com.nf.vo.ShowDateVo;
import com.nf.entity.ShowInfo;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class MainTest02 {
    public static void main(String[] args) {
//        int id=1;
//
//        ShowDateVoDao dao1=new ShowDateVoDaoImpl();
//        ShowInfoDao dao2=new ShowInfoDaoImpl();
//
//        List<ShowDateVo> list1= dao1.selectByFilmId(id);

        //System.out.println(new Gson().toJson(list1));


//        ShowInfo[][] ss=new ShowInfo[list1.size()][];


//        for(int i=0;i<list1.size();i++){
//
//            List<ShowInfo> list2= dao2.selectByShowDate(list1.get(i).getShowDate());
//            ss[i] = new ShowInfo[list2.size()] ;
//
//            for(int j=0;j<list2.size();j++) {
//                ss[i][j] = list2.get(j) ;
//            }
//
//
//        }


        //System.out.println(new Gson().toJson(ss));
        String aa="2021-02-25";
//        Date date = new Date();
//        DateFormat df = DateFormat.getDateInstance();
//        System.out.println((df.format(date)).compareTo(aa));

        Date date = new Date();
        DateFormat matter = new SimpleDateFormat("yyyy-MM-dd");
        System.out.println((matter.format(date)).compareTo(aa));
    }
}
